package org.example.authentication.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Set;

@Data
@TableName("t_sys_role")
@FieldDefaults(level = AccessLevel.PRIVATE)
public class SysRole {
    String id;
    String roleName;

    /**
     * 角色对应的权限集合
     */
    @TableField(exist = false)
    Set<SysPermissions> permissions;
}
